import time


class ChatRoom:

    """
    ip,port,name
    """
    def __init__(self, server_ip, server_port):
        self.ip: str = server_ip
        self.port: int = server_port
        self.update_time = time.time()

    def key(self):
        return f"{self.ip}:{self.port}"

    # def __repr__(self):
    #     return f"{self.name} ({self.ip}:{self.port})"

    def __str__(self):
        return f"({self.ip}:{self.port})"

